﻿
function DataTest-Urls-TestData {
    [Cmdletbinding()]
    Param(
        [Parameter(ParameterSetName = "Urls-TestData.csv", Position=0, Mandatory=$true)]
        $DataRow
    )

    Process {
        # act
        $response = Invoke-WebRequest -Uri $DataRow.Uri -Method Head
                
        # assert
        Assert-AreEqual -Expected $DataRow.ExpectedStatusCode -Actual $response.StatusCode -Message $DataRow.Uri
    }
}
